Text Change-Over

SUMMARY

Gives information how texts, dependent on process data, can be switched over.

CONTENTS

  1. Task formulation
  2. Solution 1 - Text change-over via Text file
  3. Solution 2 - Text change-over by Attribut Condition Table.
  4. Solution 3 - Text change-over by Figure Condition Table.

Task formulation

In runtime the following messages should be displayed for a motor:

       Forward Slow, Forward Fast, Backwards, Stop, Failure

The information is given by the Data Object “MOTOR_1” by returning the following values:
Condition Value
Forward Slow 1
Forward Fast 2
Backwards 5
Stop 0
Failure 7

Solution 1 - Text change-over via Text file

[MOTORS];    Section name
X0=Stop
X1=Forward Slow
X2=Forward Fast
X5=Backwards
X7=Failure
Result in runtime
In the text field the texts of the section “MOTORS” are displayed according the values of Data Object “MOTOR_1”
For return values not defined the text field stays empty.

Further Hints

The “X” in front of the value stays for ‘Project Language’.
If in the project the ALPHA-VISION®-facility MLS (Multiple Language Support) for dynamic language switch-over in runtime is used, a text-entry for any language defined must be made in the same section. The “X” thereby is replaced by the ‘LanguageID’ defined in MLS.

Example of an enlarged text file for the LanguageID “G” for German:
[MOTORS]
X0=stop
X1=Forward Slow
X2=Forward Fast
X5=Backward
X7=Failure
G0=stop
G1=Vorwärts-langsam
G2=Vorwärts-schnell
G5=Rückwärts
G7=Störung

Solution 2 - Text change-over by Attribut Condition Table.


(see also: AbvEditor, Chapter "Attribute condition tables"
Result in runtime
In the text fields lying upon each other only that one is visible whose value matches that one returned by the Data Object “MOTOR_1”.

Further Hints

Solution 3 - Text change-over by Figure Condition Table.


(see also: AbvEditor, Chapter "Figure Condition table"
Result in runtime
The figure that matches the return value of Data Object “MOTOR_1” is displayed.
For values not defined in the Figure Condition Table the figure “UNDEF” is displayed.

Further Hints